package com.leha.mp.core.entity.templateMsg;

import com.leha.mp.core.Utils.BizTransferHelper;
import com.leha.utils.DateTool;
import lombok.Data;

import java.util.Date;

@Data
public class OrderStatusMsg extends TemplateMsgBase {
    private String first = "您好，您的订单状态有更新\n";
    private String keyword1="";
    private String keyword2="";
    private String keyword3="";
    private String keyword4="";
    private String remark = "\n感谢您使用普乐云康。";
    public static OrderStatusMsg msgBuilder(String orderId, Byte type, String statusDesc) {
        String consultingType = "电话咨询";
        OrderStatusMsg orderStatusMsg = new OrderStatusMsg();
        orderStatusMsg.setTemplateId("A8WyfajDWwrmOIPMghvm1wSa0MVdKAE7DfmSF8huQQ8");
        orderStatusMsg.keyword1=orderId;
        orderStatusMsg.keyword2=BizTransferHelper.ConsultingTypeToDesc(type);
        orderStatusMsg.keyword3=DateTool.formatDate(new Date(), "yyyy-MM-dd HH:mm:ss");
        orderStatusMsg.keyword4=statusDesc;
        return orderStatusMsg;
    }
}
